package com.freeman.cement.service;

import com.freeman.cement.entity.ResponseResult;
import com.freeman.cement.entity.Staff;

import java.util.List;

public interface StaffService {

    //可以用来参考linq的使用
    List<Staff> findStaffs(Staff staff);
    //Staff findStaffByUsercode(String user_code);

    //region 202211

    Staff UserLoginCheck(String username, String password);
    void UserLogout(int id);
    ResponseResult updateStaff(Staff staff);
    ResponseResult deleteStaff(int id);
    ResponseResult addStaff(Staff staff);
    ResponseResult selectStaff(Staff staff, int pageNo, int pageSize);
    ResponseResult editPasswordByStaff(int id, String oldPassword, String newPassword);
    ResponseResult editPasswordByAdmin(int id, String newPassword);
    ResponseResult selectStaffByKeyword(String keyword, int pageNo, int pageSize);

    //endregion
}
